#include <iostream>
using namespace std;
int devide(int a,int b)
{
    if(b == 0)
    {
        string s = "you are stupid! devide by zero!";
        throw s;
    }
    return a/b;

}
int main()
{
     int a,b,c;
     cin>>a>>b;
     try{
         /*
         if(b == 0)
         {
             //string s = "you are stupid! devide by zero!";
             //int s = 10000;
             float s = 1.0;
             throw s;
         }
         c = a / b;
         */
         c = devide(a,b);
         cout<<c<<endl;
     }
     catch(string e)
     {
         cout<< "catch an string: "<<e<<endl;
     }
     catch(int e)
     {
         cout<<"catch an int: "<<e<<endl;
     }
     catch(...)
     {
         cout<<"catch everything"<<endl;
     }
     cout<<"bye bye!";
}